﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BackEnd
{
	public partial class Login : System.Web.UI.Page
	{
		protected void btnSend_Click(object sender, EventArgs e)
		{
			if (tbxLogin.Text == ConfigurationManager.AppSettings["nameAdmin"] && tbxPassw.Text == ConfigurationManager.AppSettings["passwAdmin"])
			{
				Session["Authenticator"] = true;
				Response.Redirect(string.Format(GeneralResource.urlCatalog, 1));
			}
		}
	}
}